#!/bin/sh

x=`perl -e 'print "1\n" if $] >= 5.006'`;
if [ -z "$x" ]
then
	echo "Perl version 5.6 must be installed!"
	exit 1
fi

perl -e 'use XML::Parser 2.31;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Error: Missing XML::Parser Installation." >&2
	echo "       This is no longer included in Linuxha.net since it is" >&2
	echo "       very common. Please install this toolset and re-attempt" >&2
	echo "       installation." >&2
	exit 1
fi

perl -e 'use miitoollib 0.03;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "miitoollib"
fi

perl -e 'use Crypt::CBC 2.08;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Crypt-CBC-2.08"
fi

perl -e 'use Crypt::Blowfish 2.09;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Crypt-Blowfish-2.09"
fi

perl -e 'use Net::TCP::Server 1.0;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Net-ext-1.011"
fi

perl -e 'use Time::HiRes 1.43;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Time-HiRes-1.43"
fi

perl -e 'use Net::Interface 0.05;' >/dev/null 2>&1
if [ $? -ne 0 ]
then
	echo "Net-Interface-0.04_2"
fi
exit 0
